#ifndef TICKETFRAME_H
#define TICKETFRAME_H
#include "qwidget.h"
#include <models.h>
class TicketFrame : public QWidget
{
    Q_OBJECT
public:
    explicit TicketFrame(QWidget *parent = nullptr);
    //~TicketFrame();
    //创建机票信息框
    QWidget *createTicketWidget(const Flight &flight,bool eco_class);
    QString formatTimeDifference(qint64 secondsDifference);
};

#endif // TICKETFRAME_H
